import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '',
            dataIndex: 'accountId',
            width: 200,
        },
        {
            title: '订单号',
            dataIndex: 'orderNo',
            width: 200,
        },
        {
            title: '商品描述',
            dataIndex: 'subject',
            width: 200,
        },
        {
            title: '商品标题',
            dataIndex: 'body',
            width: 200,
        },
        {
            title: '数量（商品数量）',
            dataIndex: 'count',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'carriage',
            width: 200,
        },
        {
            title: '商品总价',
            dataIndex: 'amount',
            width: 200,
        },
        {
            title: '订单类型（1购买产品 , 2 转卡费用）',
            dataIndex: 'busType',
            width: 200,
        },
        {
            title: '支付类型（PAY_ALI支付宝 , PAY_WX微信,PAY_UNDERLINE线下支付）',
            dataIndex: 'payType',
            width: 200,
        },
        {
            title: '支付状态（PAY_0未支付 ,PAY_1已支付,PAY_2已退款）',
            dataIndex: 'payStatus',
            width: 200,
        },
        {
            title: '渠道订单号',
            dataIndex: 'channelOrderNum',
            width: 200,
        },
        {
            title: '订单Id',
            dataIndex: 'targetId',
            width: 200,
        },
        {
            title: '付款日期',
            dataIndex: 'payDate',
            width: 200,
        },
        {
            title: '完成日期',
            dataIndex: 'finishDate',
            width: 200,
        },
        {
            title: '最后修改时间',
            dataIndex: 'modifyDate',
            width: 200,
        },
        {
            title: '支付参数',
            dataIndex: 'payparamId',
            width: 200,
        },
        {
            title: '备注',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '',
            field: 'accountId',
            component: 'Input',
            required: true,
        },
        {
            label: '订单号',
            field: 'orderNo',
            component: 'Input',
            required: true,
        },
        {
            label: '商品描述',
            field: 'subject',
            component: 'Input',
            required: true,
        },
        {
            label: '商品标题',
            field: 'body',
            component: 'Input',
            required: true,
        },
        {
            label: '数量（商品数量）',
            field: 'count',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'carriage',
            component: 'Input',
            required: true,
        },
        {
            label: '商品总价',
            field: 'amount',
            component: 'Input',
            required: true,
        },
        {
            label: '订单类型（1购买产品 , 2 转卡费用）',
            field: 'busType',
            component: 'Input',
            required: true,
        },
        {
            label: '支付类型（PAY_ALI支付宝 , PAY_WX微信,PAY_UNDERLINE线下支付）',
            field: 'payType',
            component: 'Input',
            required: true,
        },
        {
            label: '支付状态（PAY_0未支付 ,PAY_1已支付,PAY_2已退款）',
            field: 'payStatus',
            component: 'Input',
            required: true,
        },
        {
            label: '渠道订单号',
            field: 'channelOrderNum',
            component: 'Input',
            required: true,
        },
        {
            label: '订单Id',
            field: 'targetId',
            component: 'Input',
            required: true,
        },
        {
            label: '付款日期',
            field: 'payDate',
            component: 'Input',
            required: true,
        },
        {
            label: '完成日期',
            field: 'finishDate',
            component: 'Input',
            required: true,
        },
        {
            label: '最后修改时间',
            field: 'modifyDate',
            component: 'Input',
            required: true,
        },
        {
            label: '支付参数',
            field: 'payparamId',
            component: 'Input',
            required: true,
        },
        {
            label: '备注',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
